Skip to content

[BEAM-6083] share parsing functions to parse time among SQL tests#7072

Merged
akedin merged 1 commit intoapache:masterfrom
amaliujia:rw_parse_time
Nov 19, 2018
Merged

[BEAM-6083] share parsing functions to parse time among SQL tests#7072
akedin merged 1 commit intoapache:masterfrom
amaliujia:rw_parse_time

Conversation

@amaliujia
Copy link
Contributor

@amaliujia amaliujia commented Nov 16, 2018

Sharing time parsing functions among SQL tests.

The benefits are:

  1. new Datetime() way looks too long in IDE and makes code hard to read.
  2. In tests, if data is written into query (e.g. "SELECT DATE '2018-01-30'"), then that string can be copied to parsing functions for query result match (compared to write a new Datetime.
  3. Reduce confusion of with/without timezone when creating a new Joda Datetime.
  4. Well formatted datetime string is more readable.

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status Build Status Build Status Build Status Build Status
Python Build Status --- Build Status
Build Status
Build Status --- --- ---

@amaliujia
Copy link
Contributor Author

@amaliujia
Copy link
Contributor Author

run java postcommit

@amaliujia
Copy link
Contributor Author

run java postcommit

@akedin akedin merged commit 1cbbc4d into apache:master Nov 19, 2018
@amaliujia amaliujia deleted the rw_parse_time branch November 20, 2018 05:20
pl04351820 pushed a commit to pl04351820/beam that referenced this pull request Dec 20, 2023
closes apache#6826 

respect transform values passed into collection.add
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants